package com.vhall.component.entity.exam.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author song.dong
 * @date 2021-07-15 16:02
 */
@Data
public class ExamAnswerListVo implements Serializable {

    @NotBlank(message = "room_id is not null")
    @ParamName("room_id")
    private String roomId;

    @NotNull(message = "exam_id is not null")
    @ParamName("exam_id")
    private Integer examId;

    @ParamName("account_id")
    private Integer accountId;

    @ParamName("type")
    @Max(1)
    @Min(0)
    private Integer type;

    @ParamName("is_graded")
    @Max(1)
    @Min(0)
    private Integer isGraded;

    @ParamName("keyword")
    private String keyword;

    @ParamName("page")
    private Integer page = 1;

    @ParamName("page_size")
    private Integer pageSize = 10;
}
